<div id="sidebar-menu">
    <p>Account</p>
    <ul>
    <?php if (Zend_Auth::getInstance()->hasIdentity()): ?>
        <li><a href="/admin/account/">Admin</a></li>
        <li><a href="/auth/logout">Logout (<?php echo Zend_Auth::getInstance()->getIdentity()->username ?>)</a></li>
    <?php else: ?>
        <li><a href="/auth/login">Login</a></li>
    <?php endif; ?>
        <li><a href="/auth/register">Register</a></li>
    </ul>
</div>
<div id="sidebar-menu">
    <p>Blogs</p>
    <ul>
        <li><a href="/">All</a></li>
    <?php foreach ($this->blogs() as $blogs): ?>
        <li><a href="<?php echo '/' . $this->escape($blogs['username']) ?>"><?php echo $this->escape($blogs['username']) ?></a></li>
    <?php endforeach; ?>
    </ul>
</div>